<template>
  <div id="entry">
    <router-view></router-view>
    <!-- <div class="support">技术支持©杰能科世智能安全科技(杭州)有限公司</div> -->
    <audio id="eventAudio" autoplay="autoplay" src></audio>
  </div>
</template>
<script setup>
  import { onMounted } from 'vue'
  import { RouterView, useRouter } from 'vue-router'
  import * as Cesium from 'cesium'

  const router = useRouter()
  window.Cesium = Cesium
  onMounted(() => {
    let token = localStorage.getItem('companytoken')
    if (token == null || token == undefined || token.length < 3) {
      router.push('/login')
    }
  })
</script>
<style lang="scss">
  @import '/fonts/fonts.css';
  #entry {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    background-color: rgba(5, 43, 81, 1);
  }
  .support {
    position: absolute;
    bottom: 3%;
    right: 1%;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    z-index: 999;
    letter-spacing: 1px;
  }
  .fade-transform-leave-active,
  .fade-transform-enter-active {
    width: 100%;
    opacity: 1;
    transition: all 0.3s;
  }

  .fade-transform-enter-from {
    width: 100%;
    opacity: 0;
    transform: translateX(-1000px);
  }

  .fade-transform-leave-to {
    width: 100%;
    opacity: 0;
    transform: translateX(50%);
  }

  .fade-transform2-leave-active,
  .fade-transform2-enter-active {
    width: 100%;
    opacity: 1;
    transition: all 0.3s;
  }

  .fade-transform2-enter-from {
    width: 100%;
    opacity: 0;
    transform: translateX(1000px);
  }

  .fade-transform2-leave-to {
    width: 100%;
    opacity: 0;
    transform: translateX(-50%);
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-transition-delay: 111111s !important;
    -webkit-transition: color 11111s ease-out, background-color 111111s ease-out !important;
  }
</style>
